const connection = require('../app/database')
class RightService {
  async getRightList() {
    const statement = `
      SELECT * FROM rights;
    `
    const [res] = await connection.execute(statement)
    return res
  }
}
module.exports = new RightService()